package com.cssy.authority.util;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.cssy.authority.service.IScAuthorityStatusService;
import com.plat.util.SessionUtil;

public class AuthorityUtil {
	
	public List<String> getStatus(HttpServletRequest request,IScAuthorityStatusService scAuthorityStatusService){
		List<String> roleList = SessionUtil.getUserRoles(request);//获取当前用户所有角色
		List<String> list = scAuthorityStatusService.findByStatus(roleList);
		return list;
	}
}
